home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / unix / c / wait < prev    next >
Text File  |  1996-11-09  |  890b  |  32 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/wait,v $
  4.  * $Date: 1996/05/06 09:01:35 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: wait,v $
  10.  * Revision 1.2  1996/05/06 09:01:35  unixlib
  11.  * Updates to sources made by Nick Burrett, Peter Burwood and Simon Callan.
  12.  * Saved for 3.7a release.
  13.  *
  14.  * Revision 1.1  1996/04/19 21:35:27  simon
  15.  * Initial revision
  16.  *
  17.  ***************************************************************************/
  18.  
  19. static const char rcs_id[] = "$Id: wait,v 1.2 1996/05/06 09:01:35 unixlib Rel $";
  20.  
  21. #include <sys/wait.h>
  22. #include <sys/types.h>
  23.  
  24. /* Wait for a child to die. When one does, put its status in *status
  25.    and return its process ID. For errors, return -1.  */
  26.  
  27. pid_t
  28. wait (int *status)
  29. {
  30.   return wait4 (WAIT_ANY, status, 0, 0);
  31. }
  32.